﻿
using Microsoft.EntityFrameworkCore;
using Models;
using Models.Authority;
using Models.CarsGuanLi;
#pragma warning disable CS0105 // using 指令以前在此命名空间中出现过
using Models;
#pragma warning restore CS0105 // using 指令以前在此命名空间中出现过
using Models.Clientx;
using Models.Financing.Projectminimumlease;
using Models.Car_Li;

namespace Carlife.Inf
{
    public class CarlifeDbcontext : DbContext
    {
        public CarlifeDbcontext(DbContextOptions<CarlifeDbcontext> options) : base(options)
        {
        }
        #region 客户关系
        public DbSet<Client> Client { get; set; }
        public DbSet<Clienttype> Clienttype { get; set; }

        public DbSet<Repayment> Repayment { get; set; }

        public DbSet<Urge> Urge { get; set; }
        public DbSet<SocialRelationships> SocialRelationships { get; set; }

        public DbSet<RelationshipBiao> RelationshipBiao { get; set; }
        public DbSet<Deposit> Deposit { get; set; }
        #endregion


        #region 车辆管理
        public DbSet<CaiFangAn> CaiFangAn { get; set; }
        public DbSet<CaiGongXiang> CaiGongXiang { get; set; }
        public DbSet<CaiGou> CaiGou { get; set; }
        public DbSet<CarBaoXian> CarBaoXian { get; set; }
        public DbSet<CarJiaoJie> CarJiaoJie { get; set; }
        public DbSet<CarLianos> CarLianos { get; set; }
        public DbSet<CarModels> CarModels { get; set; }
        public DbSet<CarPic> CarPic { get; set; }
        public DbSet<ShiGuJiLu> ShiGuJiLu { get; set; }
        public DbSet<WeiXiuBaoYang> WeiXiuBaoYang { get; set; }
        public DbSet<XiaoShouFangAn> XiaoShouFangAn { get; set; }
        public DbSet<XiaoShouRiZhi> XiaoShouRiZhi { get; set; }
        public DbSet<ZaiKuCar> ZaiKuCar { get; set; }
        #endregion


        #region 角色权限
        public DbSet<Limits> Limits { get; set; }
        public DbSet<RoleLimits> RoleLimits { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<Secondary> Secondary { get; set; }
        public DbSet<UserInfo> UserInfo { get; set; }
        public DbSet<UserRole> UserRole { get; set; }
        public DbSet<Users> Users { get; set; }
        #endregion
        //public  DbSet<CarMarket> CarMarket { get; set; }
        //public DbSet<Clientdispose> Clientdispose { get; set; }
        //public DbSet<Dictionaries> Dictionaries { get; set; }
        //public DbSet<Salesperformance> Salesperformance { get; set; }

        #region 融资租赁管理
        public DbSet<Brand> Brand { get; set; }
        public DbSet<Districjs> Districjs { get; set; }
        public DbSet<CarLeaseProject> CarLeaseProject { get; set; }
        public DbSet<UserLeaseRelation> UserLeaseRelation { get; set; }
        public DbSet<Billingby> Billingby { get; set; }
        public DbSet<Licenseplate> Licenseplate { get; set; }
        public DbSet<Minimumrent> Minimumrent { get; set; }
        public DbSet<Setupaproject> Setupaproject { get; set; }
        #endregion

        #region 报表
        public DbSet<CarMarket> CarMarket { get; set; }
        public DbSet<Clientdispose> Clientdispose { get; set; }
        public DbSet<Dictionaries> Dictionaries { get; set; }
        public DbSet<Salesperformance> Salesperformance { get; set; }
        #endregion
    }
}